In situ adaptive tabulation